home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
telegard
/
tgfpu300.zip
/
TGFPU.DOC
< prev
next >
Wrap
Text File
|
1996-01-20
|
10KB
|
299 lines
TGFPU
=================================
Version 3.00 - January 20, 1996
Telegard File Point Update
for the
Telegard 3.0 BBS system
Mt. Glacier Software
Copyright (c) 1992, 1996 by Michael G. Smith
All rights reserved.
Latest version and Support available on my BBS:
The Twilight Zone
Telegard Beta Site
(203)688-0675
FidoNet 1:142/550
ITCNET 85:861/101
2400-33,600/V.32/V.34/V.FC HST Dual Standard (v.Everything)
(FREQ magic name TGFPU for latest version)
Purpose and Capabilities
========================
This utility program will QUICKLY set ALL files in a specified File
Base (.FB) to a specified number of points. This is useful to set
points for files that are brought in via FILES2TG, or when you need
to reset file points in a particular file base.
The utility takes as arguments the desired .FB filename and an integer
number of file points to set each file entry to. The utility will only
process a single .FB file at a time, but group runs can be made via a
batch file (see SAMPLE.BAT and TGFAL.DOC enclosed).
If desired, the original .FB file can be kept as a .BAK (backup)
file for fall-back in case of problems.
An optional LOG file records activity taken by the utility.
Warranty
========
This product is provided "as is" without warranty of any kind. The entire
risk as to the results and performance of the program is assumed by you.
Furthermore, the author does not warrant, guarantee, or make any other
representations regarding the use of, or the results of the use of the
program, and you rely on the program and results solely at your own
risk. The author cannot and will not accept responsibility for system
damage, loss of profit, or any other special, consequential or incidental
damages resulting from the use or inability to use this product.
I've tested it on my system and it's worked fine. A backup might be a
good idea before your first run, just in case. If you do find any bugs,
please report them using one of the support options below.
Copyright
=========
TGFPU is Copyright (c) 1992, 1996 Mt. Glacier Software by Michael G. Smith.
It is distributed as Freeware. You are encouraged to use this utility
free of charge. Any comments/feedback/suggestions would be gladly
accepted (see Support section below), including a simple note to say
"Thanks".
Distribution
============
You are encouraged to distribute TGFPU provided that all files contained
in the archive are distributed in their original and unmodified state.
No fee is to be charged above a normal minimal distribution fee.
Description
===========
TGFPU is a yet another little utility program I wrote to solve those
nagging maintenance issues involved in running a Telegard board. I wrote
it for Telegard 2.5 in order to set a fixed number of file points for
files coming in via file echoes and FILES2TG. Other utilities didn't
have the speed I desired and thuss TGFPU was born. TGFPU was designed
for SPEED!! The program only updates records if the file points differ
from the desired value, thus saving additional I/O (and time!).
TGFPU verifies that the specified .FB file is present in FAREAS.DAT
and locates the .FB file via information stored in FAREAS.DAT.
If /B (Backup) is specified, the input .FB file is renamed to .BAK and
copied to a *new* .FB file before processing takes place. If /B is
_not_ specified, the .FB file is updated in place.
If /L (Log) is specified, the utilities activity is written to the log
file specified. If no log file path/name is specified, the utility will
write to a default file named TGFPU.LOG in the current directory.
Important Notes
===============
1. Option switches can be specified with slash or dash (e.g. /B or -B).
2. If you're running with /B and have a problem (disk full, power
failure, etc) remember that the .BAK is a RENAME of the original
.FB file *before* any processing takes place. It can be simply
renamed back to .FB to recover!
3. Suggestion: Create a .BAT (batch) file to automate routine runs
of TGFPU against file directories. Refer to the utility TGFAL
(Telegard File Area Lister) that was also included in this archive
as an easy way to generate a .BAT file - use of TGFAL is documented
in file TGFAL.DOC.
Example:
@Echo off
Rem SAMPLE.BAT - Invoke TGFPU for several directory files
C:
CD \BBS
TGFPU GAMES 1 /LC:\BBS\LOGS\TGFPU.LOG
TGFPU COMM 1 /LC:\BBS\LOGS\TGFPU.LOG
TGFPU GRAPHIC 1 /LC:\BBS\LOGS\TGFPU.LOG
TGFPU UTIL 1 /LC:\BBS\LOGS\TGFPU.LOG
Usage
=====
TGFPU will attempt to open CONFIG.TG in the current directory, and if not
found, will search the DOS PATH for it. Successful completion returns a
zero condition code, any errors will produce a non-zero return code.
Return codes (errorlevels) are detailed below.
TGFPU accepts two command line parameters (which are required),
and up to two command line option switches (which are optional).
Command format is:
TGFPU fbname #pts [/B] [/L[logfile]]
Where:
fbname - The input file base name to process.
Notes: Do NOT specify the .FB extension.
The input file base must be defined to Telegard
(i.e. exist in FAREAS.DAT).
#pts - Specifies the number of file points to assign to each
file in the above specified .FB file.
/B - Specifies that the original .FB file will be retained as
.BAK at end of processing.
/L[logfile] - Specifies that the utilities activities will be logged to
the file specified. If /L is specified with no logfile
name, the utility will log to TGFPU.LOG in the current
directory. Note that the logfile specification can be a
fully pathed DOS filename.
Example commands:
TGFPU GAMES 3 = Set all files in dir GAMES to 3 points.
Directory will be updated in place.
No LOG file will be written.
TGFPU UTILS 15 /B = Set all files in dir UTILS to 15 points,
and create a .BAK backup of the .FB file
before processing.
TGFPU MISC 5 /L = Set all files in dir MISC to 5 points, and
log activity to default file TGFPU.LOG in
the current directory.
TGFPU COMM 1 /B /LC:\BBS\LOGS\TGFPU.LOG
= Set all files in dir COMM to 1 point,
create a .BAK backup of the .FB file, and
log activity to file C:\BBS\LOGS\TGFPU.LOG.
TGFPU Version 3.00 Files List
==============================
FILE_ID.DIZ Standard description file for BBS upload.
RUNTGFPU.BAT Sample .BAT (batch) file to invoke TGFPU.
TGFAL.DOC TGFAL utility complete documentation.
TGFAL.EXE TGFAL utility executable program.
TGFPU.DOC TGFPU utility complete documentation (this file).
TGFPU.EXE TGFPU utility executable program.
TGFPUSAM.LOG Sample TGFPU utility LOG file.
Return Codes / ErrorLevels
==========================
0 = Normal completion.
4 = Invalid or Missing Parameters.
8 = Error Opening or Reading CONFIG.TG file.
12 = Error Opening or Reading FAREAS.DAT file.
16 = Error Opening or Reading/Writing .FB file.
20 = Error Opening or Writing LOG file.
Support
=======
I can be reached at the following for support/questions/suggestions about
this utility (listed in my preferred order):
FIDO: 1:142/550 (FREQ magic name TGFPU for latest version)
ITCNET: 85:861/101
Use NetMail for fastest reply.
BBS: The Twilight Zone
Telegard Beta Site
(203)688-0675 HST Dual Standard (v.Everything)
U.S. Mail: Michael G. Smith
14 Oxford Lane
Windsor, CT 06095
Phone: Sorry. No voice support available.
History
=======
Version Date Remarks
------- ---- -------
1.00 07/30/92 Initial General Release (MGSFP100.ZIP).
3.00 11/20/96 Updated for TG 3.0. Added logging. (TGFPU100.ZIP).
Futures and Enhancements
========================
Well, that all depends. If I get some positive feedback on this utility,
I will probably enhance it. If not, well, it does what I want now...
Some possibilities: (suggestions cheerfully accepted)
- Process directories via a parameter file.
- Speed improvement. (What can I say? I'm a speed freak...)
-= End of TGFPU.DOC file =-